<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>字符串</title>
	</head>
	<body>
		<script type="text/javascript">
			//加法操作
			var mystr1="Hello";
			var mystr2="world!";
			var newStr=mystr1+" "+mystr2;//Hello world!
			console.log(newStr);
			
			var mystr1="Hello";
			var mystr2="world,";
			var mystr3="Hello";
			var mystr4="guoxiansheng";//Hello world,Hello guoxiansheng
			var newStr=mystr1.concat(mystr2+mystr3+" "+mystr4);
			console.log(newStr);
		</script>
	</body>
</html>
